import java.io.*;

/**
 * @description: io写测试
 * @author: yuanjianpeng5
 * @createdate: 2020-02-21 19:38
 * @lastdate:
 */

public class Test3 {

    public static void main(String[] args) throws IOException {
        File scorelistFile = new File("D:/yuanjianpeng5/Documents/工作文档/checktest.txt");
        FileOutputStream fop = null;
        BufferedWriter bufferedWriter = null;

        fop = new FileOutputStream(scorelistFile, true);
        bufferedWriter = new BufferedWriter(new OutputStreamWriter(fop, "UTF-8"));

        bufferedWriter.append("测试文件2");

        bufferedWriter.close();
        fop.close();

    }
}